← Index
NYTProf Performance Profile   
For svc/members/upsert
  Run on Tue Jan 13 11:50:22 2015
Reported on Tue Jan 13 12:09:51 2015

Filename(eval 73)[/usr/share/perl5/CGI.pm:932]
StatementsExecuted 16 statements in 25µs
Eval Invoked At/usr/share/perl5/CGI.pm line 932
Sibling evals1, 2, 3, 4, 5, 6
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
11121µs24µsCGI::::read_from_cmdlineCGI::read_from_cmdline
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 24µs (21+3) within CGI::read_from_cmdline which was called: # once (21µs+3µs) by CGI::init at line 895 of CGI.pm
package CGI; sub read_from_cmdline {
21100ns my($input,@words);
3 my($query_string);
4 my($subpath);
511µs if ($DEBUG && @ARGV) {
6 @words = @ARGV;
7 } elsif ($DEBUG > 1) {
8 require Text::ParseWords;
9 print STDERR "(offline mode: enter name=value pairs on standard input; press ^D or ^Z when done)\n";
10 chomp(@lines = <STDIN>); # remove newlines
11 $input = join(" ",@lines);
12 @words = &Text::ParseWords::old_shellwords($input);
13 }
141600ns for (@words) {
1556µs51µs s/\\=/%3D/g;
# spent 1µs making 5 calls to CGI::CORE:subst, avg 260ns/call
1656µs5500ns s/\\&/%26/g;
# spent 500ns making 5 calls to CGI::CORE:subst, avg 100ns/call
17 }
18
1915µs1800ns if ("@words"=~/=/) {
# spent 800ns making 1 call to CGI::CORE:match
20 $query_string = join('&',@words);
21 } else {
22 $query_string = join('+',@words);
23 }
2412µs1300ns if ($query_string =~ /^(.*?)\?(.*)$/)
# spent 300ns making 1 call to CGI::CORE:match
25 {
26 $query_string = $2;
27 $subpath = $1;
28 }
2914µs return { 'query_string' => $query_string, 'subpath' => $subpath };
30}
31
32;